package com.guchenbo.example.filter;

public class GcbFilterDemo {
    public static void main(String[] args) {
        GcbServlet servlet = new GcbServlet();
        GcbFilterReq req = new GcbFilterReq();
        req.setCnt(10);

        GcbFilterAdd1 filterAdd1 = new GcbFilterAdd1();
        GcbFilterAdd2 filterAdd2 = new GcbFilterAdd2();
        GcbFilterAdd3 filterAdd3 = new GcbFilterAdd3();

        GcbFilterChain filterChain = new GcbFilterChain(servlet);
        filterChain.addFilter(filterAdd1);
        filterChain.addFilter(filterAdd2);
        filterChain.addFilter(filterAdd3);

        filterChain.doFilter(req);
    }
}
